<#assign shiro=JspTaglibs["http://shiro.apache.org/tags"]>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>
        申请成为入驻商家
    </title>

    <style type="text/css">
        body {
            padding: 10px 0;
        }

        div.ztree {
            border: 1px solid #617775;
            background: #f0f6e4;
            width: 300px;
            height: 300px;
            overflow-y: scroll;
            overflow-x: auto;
        }

        #result_id table {
            width: 100%;
        }

        #result_id table tr td:hover {
            background-color: #FF9999;
            cursor: pointer
        }
    </style>

    <link rel="stylesheet" href="/common/js/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <link rel="stylesheet" href="/common/js/bootstrap-3.0.0/css/bootstrap-united.min.css" type="text/css">
    <link rel="stylesheet" href="/common/js/jquery-plugin/validate/style.css" type="text/css">

    <script type="text/javascript" charset="utf-8" src="/common/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/common/ueditor/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="/common/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<div class="container">
    <form id="form" method="post" action="/user/submitBizRegisterDetail" class="form-horizontal" enctype="multipart/form-data">
        <input type="hidden" id="user_id" class="form-control" name="#{user.getId()}" />
        <fieldset>

            <legend>申请成为商家</legend>

            <fieldset>
                <legend>基本信息</legend>

                <div class="form-group">
                    <label class="col-md-2 control-label" for="name">商家名:</label>

                    <div class="col-md-4">
                        <input type="text" id="cn_name" class="form-control" name="cn_name" />
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-md-2 control-label" for="login_name">商家类型:</label>

                    <div class="col-md-4">
                        <select id="user_type" name="user_type" class="form-control">
                            <option value="3">个人商家</option>
                            <option value="4">团队商家</option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-md-2 control-label" for="login_name">职业类型:</label>

                    <div class="col-md-4">
                        <select id="biz_work_type" name="biz_work_type" class="form-control">
                            <option value="1">策划师</option>
                            <option value="5">主持人</option>
                            <option value="6">摄影师</option>
                            <option value="7">化妆师</option>
                            <option value="27">摄像师</option>
                        <#if workTypeList??>
                            <#list workTypeList as workType>
                                <option value="${workType.getId()?string}">${workType.getName()}</option>
                            </#list>
                        </#if>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-md-2 control-label" for="title">头像:</label>

                    <div class="col-md-4">
                        <input type="file" id="avatar" class="form-control" name="avatar" required="required" />
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-md-2 control-label" for="title">证件图片:</label>

                    <div class="col-md-4">
                        <input type="file" id="file" class="form-control" name="file" required="required" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-offset-2 col-md-4">
                        <button class="btn btn-primary" type="submit">保存</button>
                        <button class="btn btn-danger" onclick="javascript:history.back(-1);">取消</button>
                    </div>
                </div>

            </fieldset>

        </fieldset>
    </form>
</div>
<script type="text/javascript" src="/common/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/common/js/zTree/js/jquery.ztree.core-3.5.min.js"></script>
<script type="text/javascript" src="/common/js/zTree/js/jquery.ztree.excheck-3.5.min.js"></script>
<script type="text/javascript" src="/common/js/dateformat.js"></script>
<script type="text/javascript" src="/common/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/common/js/jquery-plugin/validate/jquery.validate.1.11.1.min.js"></script>

</body>
</html>